package com.zygh.policeasset.mapper;

import com.zygh.policeasset.pojo.ShortcutMenu;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.type.JdbcType;

@Mapper
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/mapper/ShortcutMenuMapper.class */
public interface ShortcutMenuMapper {
    @Insert({"insert into shortcut_menu(name,icon,sort,path,menu_id) values(#{name},#{icon},#{sort},#{path},#{menuId});"})
    Integer add(ShortcutMenu shortcutMenu);

    @Delete({"delete from shortcut_menu"})
    Integer deleteById();

    @Results({@Result(column = "menu_id", property = "menuId", jdbcType = JdbcType.INTEGER, id = true)})
    @Select({"select * from shortcut_menu"})
    List<ShortcutMenu> selectList();
}